Omplus.actions.Action = Omplus.base.extend(Omplus.base.Base, {
    init:function () {
        if (typeof this.requestModel == "object"){
            this.requestModel.omplusName = this.omplusName + ".requestModel";
            Omplus.base.create(Omplus.models[this.requestModel.omplusType], this.requestModel);
            this.requestModel = this.omplusName + ".requestModel";
        }
        if (typeof this.responseModel == "object"){
            this.responseModel.omplusName = this.omplusName + ".responseModel";
            Omplus.base.create(Omplus.models[this.responseModel.omplusType], this.responseModel);
            this.responseModel = this.omplusName + ".responseModel";
        }
        this.proxy.omplusName = this.omplusName + ".proxy";
        Omplus.base.create(Omplus.proxy[this.proxy.omplusType], this.proxy);
        this.proxy = this.omplusName + ".proxy";
    },
    omplusType:"Action",
    requestModel:{
        omplusType:"Model"
    },
    responseModel:{
        omplusType:"Model"
    },
    proxy:{},
    callback : function(){},
    start : function(){},
    run:function(){}
});

Omplus.actions.Get = Omplus.base.extend(Omplus.actions.Action, {
    omplusType:"Get",
    run:function(){
        this.start();
        Omplus.globals.getObject(this.proxy).getResult(this.omplusName, this.requestModel, this.responseModel, this.callback);
    }
});

Omplus.actions.Set = Omplus.base.extend(Omplus.actions.Action, {
    omplusType:"Set",
    run:function(){
        this.start();
        Omplus.globals.getObject(this.proxy).setResult(this.omplusName, this.requestModel, this.responseModel, this.callback);
    }
});